home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Softdisk Supreme
/
Softdisk Supreme.iso
/
pc
/
DSK Files
/
0-49
/
SD020b.dsk
/
BRIAN'S THEME.bas
< prev
next >
Wrap
BASIC Source File
|
2003-06-12
|
2KB
|
36 lines
10 HOME : REM CLEAR THE TEXT WINDOW
11 TEXT : POKE 216,0: REM TURN OFF ONERR
15 VTAB 7: HTAB 15: PRINT "BRIAN'S THEME"
20 VTAB 9: HTAB 17: PRINT " BY"
25 VTAB 11: HTAB 16: PRINT "BRIAN HOWARD"
30 VTAB 15: PRINT " COPYRIGHT 1979, APPLE COMPUTER INC."
35 VTAB 23: HTAB 9: PRINT "PRESS RETURN TO CONTINUE...";
40 GET A$: IF A$ < > CHR$(13) THEN 40
80 HOME : REM CLEAR THE TEXT AREA
100 VTAB 22: REM MOVE CURSOR TO MIDDLE
120 HGR : REM SET HIGH RESOLUTION GRAPHICS MODE
140 A = RND(1) *279: REM PICK AN X FOR "CENTER"
160 B = RND(1) *159: REM PICK A Y FOR "CENTER"
180 I% = ( RND(1) *4) +2: REM PICK A STEP SIZE
190 HOME : VTAB 22
200 HTAB 15: PRINT "STEPPING BY ";I%
210 VTAB 24: PRINT " <PRESS THE 'ESC' KEY TO STOP>";
220 FOR X = 0 TO 278 STEP I%: REM STEP THROUGH X VALUES
240 FOR S = 0 TO 1: REM 2 LINES, FROM X AND X+1
260 HCOLOR= 3 *S: REM FIRST LINE BLACK, NEXT WHITE
280 REM DRAW LINE THROUGH "CENTER" TO OPPOSITE SIDE
300 HPLOT X +S,0 TO A,B TO 279 -X -S,159
310 IF PEEK( -16384) = 155 THEN 31111
320 NEXT S,X
340 FOR Y = 0 TO 158 STEP I%: REM STEP THROUGH Y VALUES
360 FOR S = 0 TO 1: REM 2 LINES, FROM Y AND Y+1
380 HCOLOR= 3 *S: REM FIRST LINE BLACK, NEXT WHITE
400 REM DRAW LINE THROUGH "CENTER" TO OPPOSITE SIDE
420 HPLOT 279,Y +S TO A,B TO 0,159 -Y -S
430 IF PEEK( -16384) = 155 THEN 31111
440 NEXT S,Y
460 FOR PAUSE = 1 TO 1500: NEXT PAUSE: REM DELAY
480 GOTO 120: REM DRAW A NEW PATTERN
31111 POKE -16298,0: REM TURN OFF HI-RES
31112 POKE -16388,0: REM CLEAR KBD STROBE
31115 TEXT : CALL -936: TEXT : END